﻿namespace Loki.UI
{
    public class RequiredRule : IValidationRule
    {
        public bool Validate(object P_Value)
        {
            if (P_Value == null)
            {
                return false;
            }
            else
            {
                string L_StringValue = P_Value.ToString();
                return !string.IsNullOrWhiteSpace(L_StringValue);
            }
        }
    }
}
